package client.whiteboard.model;

import java.awt.event.MouseEvent;

import client.whiteboard.view.IDisplay;

public class DisplayManager implements IManager
{
	private Drawing _drawing;
	private IDisplay _display;
	private String _author;
	public void mouseDown(int px, int py)
	{
		_drawing.startDrawing();
		_author = "unknown";
	}
	public void mouseMove(int px, int py)
	{
		
	}
	public void mouseUp(int px, int py)
	{
		_drawing.stopDrawing();
	}
	public void mouseDrag(int px, int py)
	{
		_drawing.addPoint(new Point(px, py));
	}
	public void setDrawing(Drawing drawing)
	{
		_drawing = drawing;
	}
	@Override
	public void setDisplay(IDisplay display)
	{
		_display = display;
		
	}
	public void buttonPressed(String value) {
		// TODO Auto-generated method stub
		_display.wipe();
		
	}
	public void setAuthor(String author)
	{
		_author = author;
	}
}
